﻿using System;
using System.Collections.Generic;
using System.Text;
using Truron.Purchase.Model;
using Truron.Purchase.Model.RemoteModel;

namespace Truron.Purchase.Interface
{
    public interface IPurchase_OuterRequestNoteRelationService
    {
        List<Purchase_OuterRequestNoteRelation> GetListByNoteId(int NoteId);
        List<Purchase_OuterRequestNoteRelation> GetListByRequestId(int RequestId);
        int Save(Purchase_OuterRequestNoteRelation ent, UserCache user);
        List<Purchase_OuterRequestNoteRelation> GetRelationListByNoteId(int NoteId);
        List<Purchase_OuterRequestNoteRelation> GetRelationListByNoteIds(List<int> NoteIds);
        List<Purchase_OuterRequestNoteRelation> GetRelationListByRequestIds(List<int> RequestIds);
        int DeleteByRequestIdAndNoteId(int RequestId, int NoteId,UserCache userinfo);
        void UpdateExpectMoney(int Id, decimal ExpectMoney,int OuterNum, UserCache UserInfo);
        void UpdateRealMoney(int NoteId, decimal RealMoney, UserCache userCache, decimal SingleMoney);
        Purchase_OuterRequestNoteRelation GetDetail(int Id);
        Purchase_OuterRequestNoteRelation GetDetailByRequestIdAndNoteId(int RequestId, int NoteId);
    }
}
